package cn.bulibuqi.myblog.service;

import cn.bulibuqi.myblog.bean.Blog;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * @author bulibuqi
 * @create 2021-12-18:01
 */
public interface BlogService {

    Blog getBlog(Long id);

    Page<Blog> listBlog(Page pageInfo,Blog blog);

    void saveBlog(Blog blog);

    boolean updateBlog(Long id, Blog blog);

    boolean deleteBlog(Long id);

    void saveAndUpdate(Blog blog);
}
